package mmoon.mmoonstory.interfaces;

import mmoon.mmoonstory.MMoonAll;
import mmoon.mmoonstory.MMoonStory;
import net.minecraft.potion.Potion;

public interface InitPotion {
    String ObjID = "Null";

    default void init(String objID) {
        Potion potion = this.setID(objID);
        MMoonAll.MMOON_POTIONS.add(potion);
        MMoonAll.MMOON_POTIONTYPES.add(MMoonAll.Potion2PotionType(potion));
    }

    default Potion setID(String objID) {
        Potion potion = (Potion) this;
        potion.setPotionName(objID);
        potion.setRegistryName(MMoonStory.MOD_ID, objID);
        return potion;
    }
}
